package com.tmc.bean.intcar;

import java.io.Serializable;

/**
 * @author zhang
 * @date 2017年12月21日 下午5:02:55 
 */
public class EthCancelOrderResp implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -742115605447272424L;
	
	private boolean success;
	private String message;
	private Double cancelAmount; // 订单取消违约金
	
	public EthCancelOrderResp(boolean success, String message, Double cancelAmount) {
		super();
		this.success = success;
		this.message = message;
		this.cancelAmount = cancelAmount; 
	}
	
	public EthCancelOrderResp() {
		super();
	}

	public static EthCancelOrderResp makeFail(String message){
		return new EthCancelOrderResp(false, message, null);
		
	}
	
	public static EthCancelOrderResp makeSuccess(String message, Double cancelAmount){
		return new EthCancelOrderResp(true, message, cancelAmount);
	}
	
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Double getCancelAmount() {
		return cancelAmount;
	}
	public void setCancelAmount(Double cancelAmount) {
		this.cancelAmount = cancelAmount;
	}
	

}
